package com.example.zm_fanjiantao.enums;

public enum RestfullCode {
    SUCCESS(0,"响应成功"),
    FAIL(1002,"系统错误");
    private int code;
    private String msg;

    public void setCode(int code) {
        this.code = code;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    RestfullCode(int code, String msg){
        this.code=code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
